home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000167_news@newsmaster….columbia.edu _Sun May 31 16:10:09 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA26609
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 31 May 1998 16:10:07 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA12027
  7.     for kermit.misc@watsun; Sun, 31 May 1998 16:10:07 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!newshub.northeast.verio.net!newsfeeder.servtech.com!post.servtech.com!hal9000.buf.servtech.com!spamguard!rchandra
  9. From: rchandra.spamguard@spamguard.letter.com
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: accesing modem for users other than root?
  12. Date: 31 May 1998 19:48:08 GMT
  13. Organization: just by myself, connected through Verio New York
  14. Lines: 62
  15. Message-ID: <6ksc5o$8s9$1@post.servtech.com>
  16. References: <6kmho4$6ic@portal.gmu.edu>
  17. Reply-To: rchandra.spamguard@spamguard.letter.com
  18. NNTP-Posting-Host: hal9000.buf.servtech.com
  19. Originator: 0x804b6e8@0x804b560
  20. Xref: news.columbia.edu comp.protocols.kermit.misc:8835
  21.  
  22. In article <6kmho4$6ic@portal.gmu.edu>,
  23. Ravi Malghan <rmalghan@site.gmu.edu> wrote:
  24. >Hi,
  25. >I am using the C-Kermit to sent pages over a connected modem. I am able
  26. >to send pages as a root. But when I try sending as any other user
  27. >I get the following message
  28. >
  29. >===
  30. >mgtserver% ./page_ravi 18885005136 1 536
  31. >/var/spool/locks: Permission denied
  32. >Sorry, access to lock denied: /dev/ttya
  33.  
  34. I personally would add some code to the script here along the lines
  35. of:
  36.  
  37. if success goto next_step
  38. write error set line failed\10
  39. exit 1
  40. :next_step
  41.  
  42. ...but choose some meaningful label other than "next_step".
  43.  
  44. >?Sorry, you must SET LINE first
  45. >Sorry, you must SET LINE or SET HOST first
  46. >C-Kermit 6.0.192, 6 Sep 96, for Solaris 2.x
  47. > Copyright (C) 1985, 1996,
  48. >  Trustees of Columbia University in the City of New York.
  49. >Default file-transfer mode is TEXT
  50. >Type ? or HELP for help.
  51. >[/export/home/rmalghan/pager_softwares/C-Kermit] C-Kermit>
  52. >
  53. >======
  54. >The permissions for the locks, term/a files are:
  55. >
  56. >drwxr-xr-x   2 uucp     uucp         512 May 29 10:28 locks
  57. >
  58. >lrwxrwxrwx   1 root     root           6 Feb 13 19:41 /dev/ttya -> term/a
  59. >
  60. >lrwxrwxrwx   1 root     root          47 Feb 13 19:41 /dev/term/a -> ../../de
  61. >vices/pci@1f,4000/ebus@1/se@14,400000:a
  62.  
  63. Kermit has a lot of code in it that deals with temporarily granting
  64. permissions to perform certain operations.  If your OS supports it (I
  65. think Solaris does), your Kermit binary ("wermit"/"kermit") may be
  66. built with such support, and if you make the group owner "uucp" and
  67. set the "set group ID" bit (with the chmod command), and make the
  68. locks directory group-writable, the lock will be able to be acquired.
  69. Depending on other things going on with your system, you may be able
  70. to make your modems group writable and make their group owner "uucp"
  71. too.  If that modem line is bidirectional, some login systems (getty
  72. and friends) set up the device node (e.g., /dev/ttya) with a given
  73. group, mode/permission bits, and so on, so setting it once may not be
  74. sufficient.  Also, even if that were so, getty/login usually makes the
  75. logged in user the owner of the device, and therefore may change the
  76. group owner and permissions of the device node.
  77.  
  78. Hope that works for you, and others with a similar setup.
  79. -- 
  80. Oooooo-oooo-oooo-ooooo, Oooooo-oooo-oooo-ooooo, Ooooo-weem-oh-wum-ooo-ayyy
  81. In the jungle, the silicon jungle, the process sleeps tonight.
  82. Joe Philipps <rchandra-nospam@letter.com> http://www.servtech.com/~rchandra/
  83. You know what you have to do to send email to me successfully :^)